//
//  JFCell.m
//  Qihuo
//
//  Created by Vencoo on 14-1-25.
//  Copyright (c) 2014年 Vencoo. All rights reserved.
//

#import "JFCell.h"

@implementation JFCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        UIImage *lineImage = [UIImage imageNamed:@"黑边框"];
        self.frame = CGRectMake(0, 0, lineImage.size.width, 50);
        
        _longFloorNameLb = [UILabel new];
        _longFloorNameLb.font = [UIFont systemFontOfSize:20];
        CGSize size = [[NSString stringWithFormat:@"啊啊啊啊啊啊啊啊啊"]sizeWithFont:_longFloorNameLb.font constrainedToSize:CGSizeMake(MAXFLOAT, 40)];
        _longFloorNameLb.frame = CGRectMake(0, (self.frame.size.height - 30)/2, size.width, size.height);
        _longFloorNameLb.textAlignment = 1;
        [self.contentView addSubview:_longFloorNameLb];
        
        _resultLb = [UILabel new];
        _resultLb.font = [UIFont systemFontOfSize:15];
        size = [[NSString stringWithFormat:@"啊啊啊啊啊啊啊啊啊啊啊"]sizeWithFont:_resultLb.font constrainedToSize:CGSizeMake(MAXFLOAT, 40)];
        _resultLb.frame = CGRectMake(self.frame.size.width - size.width - 10, (self.frame.size.height - 30)/2, size.width, size.height);
        _resultLb.textAlignment = 1;
        [self.contentView addSubview:_resultLb];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
